﻿@model IEnumerable<Developer.Entity.BookTypes>
@{
    Layout = "~/Views/Shared/_UILayout.cshtml";
}

<ul class="mui-table-view mui-card" style="margin-top: 10px;">
    @{ 
        foreach(var item in Model.OrderBy(a=>a.Name))
        {
            <li class="mui-table-view-cell" id="@item.Id">
                <a class="mui-navigate-right" href="/Book/NavigationBooks/?Id=@item.Id">
                        @item.Name
                </a>
            </li>

        }
    }
    
</ul>
<script>
    mui(".mui-table-view").on('tap', '.mui-table-view-cell', function () {
        //获取id
        var id = this.getAttribute("id");
        self.location = "/Book/NavigationBooks/?Id=" + id;
    }) 
</script>